<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    /*new Promise((resolve, reject)=>{
        setTimeout(()=>{
            console.log("setTimeout")
            resolve()
        },1000)
    }).then(()=>{
        console.log("-------")
    })*/
    (async ()=>{
        await new Promise((resolve, reject)=>{
            setTimeout(()=>{
                console.log("setTimeout")
                resolve()
            },1000)
        })
        console.log("-------")
    })()



   /* var  id = setTimeout(()=>{
        console.log("setTimeout")
    },1000)
    Promise.resolve(id).then(()=>{
        console.log("-------")
    })



    (async ()=>{
        await setTimeout(()=>{
                console.log("setTimeout")
            },1000)
        console.log("-------")
    })()*/


</script>
</html>